﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NCLCustomerManagement.DataTransferObjects.User;

namespace NCLCustomerManagement.DataAccess.User
{
    public interface IUserRepository
    {
        bool Authenticate(string userName, string password);
        bool Authenticate(string userName, string password, out UserProfile userProfile);
        bool IsAdmin(string username);

        IEnumerable<UserProfileDTO> GetUserListOf(string manager);
        UserProfileDTO GetUserByUsername(string username);
        void AddNewUser(UserProfileDTO userDto);
        void DeleteUser(string username);
        //void UpdateUser(UserProfileDTO userDto);
        void ChangePassword(string username, string newPassword);
        void ActivateDeactivateUser(string username, bool activate);
    }
}
